// import com.alibaba.druid.sql.ast.SQLExpr;
// import com.alibaba.druid.sql.ast.SQLLimit;
// import com.alibaba.druid.sql.ast.SQLName;
// import com.alibaba.druid.sql.ast.SQLOrderBy;
// import com.alibaba.druid.sql.dialect.mysql.visitor.MySqlASTVisitor;

#include "MySqlShowRuleStatement.h"
#include "../../../../ast/SQLExpr.h"
#include "../../../../ast/SQLLimit.h"
#include "../../../../ast/SQLName.h"
#include "../../../../ast/SQLOrderBy.h"
#include "../../visitor/MySqlASTVisitor.h"

MySqlShowRuleStatement::MySqlShowRuleStatement()
{
}

SQLLimit_ptr MySqlShowRuleStatement::getLimit()
{
  return limit;
}

void MySqlShowRuleStatement::setLimit(SQLLimit_ptr limit)
{
  this->limit = limit;
}

SQLOrderBy_ptr MySqlShowRuleStatement::getOrderBy()
{
  return orderBy;
}

void MySqlShowRuleStatement::setOrderBy(SQLOrderBy_ptr orderBy)
{
  this->orderBy = orderBy;
}

SQLExpr_ptr MySqlShowRuleStatement::getWhere()
{
  return where;
}

void MySqlShowRuleStatement::setWhere(SQLExpr_ptr where)
{
  this->where = where;
}

SQLName_ptr MySqlShowRuleStatement::getName()
{
  return name;
}

void MySqlShowRuleStatement::setName(SQLName_ptr name)
{
  this->name = name;
}

BOOL_ptr MySqlShowRuleStatement::isFull()
{
  return full;
}

void MySqlShowRuleStatement::setFull(BOOL_ptr full)
{
  this->full = full;
}

BOOL_ptr MySqlShowRuleStatement::isVersion()
{
  return version;
}

void MySqlShowRuleStatement::setVersion(BOOL_ptr version)
{
  this->version = version;
}

void MySqlShowRuleStatement::accept0(MySqlASTVisitor_ptr visitor)
{
  if (visitor->visit(SharedObject(MySqlShowRuleStatement)))
  {
    acceptChild(visitor, where);
    acceptChild(visitor, orderBy);
    acceptChild(visitor, limit);
  }
  visitor->endVisit(SharedObject(MySqlShowRuleStatement));
}
